<%--
 *  File:    PageConfigEditMain.jsp
 *  @Author: banshang
 *  Date:    2010/06/28
 *
 *  Copyright (C) 2000 - 2010 Oval Technologies, Inc.
 *  All rights reserved. 
 *
 *  This software is the confidential and proprietary information of Oval 
 *  Technologies, Inc. ("Confidential Information").  You shall not
 *  disclose such Confidential Information and shall use it only in
 *  accordance with the terms of the license agreement you entered into
 *  with Oval.
--%>

<%@ include file="/inc/SessionTimeout.inc"%>
<%@ page language="java" %>     
<%@ page import="java.util.*" %>
<%@ page import="org.apache.log4j.Category" %>
<%@ page contentType = "text/html;charset=UTF-8" %>
<%@ taglib uri="/WEB-INF/PageFlow.tld" prefix="PageFlow" %>
<%@ taglib uri="/WEB-INF/custom.tld" prefix="custom" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>

<% //--------------------------------------  setting logger --%>

<%
  //init param
  String strModuleName = "IMG";
  String privilegeCode = "ZB0107";
  String contextPath = request.getContextPath();
%>
<% //--------------------------------------  include files list --%>
<%@ include file="/inc/Security.inc" %>
<%@ include file="/inc/PageDefault.inc" %>
<%@ include file="/inc/LocationDefault.inc" %>

<html>
<head>
<title>PageConfigEditMain</title>

<PageFlow:CheckPageFlow pageName="p_pageconfigedit"></PageFlow:CheckPageFlow>
<link rel="stylesheet" href="<%=contextPath %>/css/<%= strLanguageCode %>/main.css" type="text/css">
<script language="JavaScript" src="<%=contextPath %>/css/<%= strLanguageCode %>/script.js"></script>
<script language="JavaScript" src="<%=contextPath %>/js/ScriptLib.js"></script>

<script type="text/javascript">
function page_save(){
	if(!checkForm(cform)) return;
	document.cform.actionname.value="save";
	document.cform.target="_self"
	isRunning = true;
	document.cform.submit();
}
function page_back(){
	parent.location.href="PageConfigSummary.jsp?<%= OvalTools.randomURL() %>";
}
</script>
</head>

<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="100%" cellspacing="0" cellpadding="0">
  <tr>
    <td class="summary_top"></td>
  </tr>
</table>
<table width="100%" cellspacing="0" cellpadding="0" >
<form name="cform" method="post" action="../../Dispatcher">
       <input type="hidden" name="pagename" value="p_pageconfigedit">
       <input type="hidden" name="actionname">
       <custom:hidden name="pageconfiginfo" property="pageconfigid"></custom:hidden>

  <tr> 
    <td valign="top"> 
        <table border="1" cellspacing="0" bordercolorlight="#999999" bordercolordark="#FFFFFF" align="center" width="100%" cellpadding="1">
          <tr> 
            <td colspan="4" class="deepblue-left"> <img src="../../images/<%= strLanguageCode %>/quote.gif"> 
              <%= label.getLabelName("L_BasicInfo") + label.getLabelName("L_Colon") %> </td>
          </tr>
          
          <tr> 
            <td class="td-text"><%= label.getLabelName("L_Code") + label.getLabelName("L_Colon") %></td>
            <td > 
            	<custom:write name="pageconfiginfo" property="pageconfigcode" nbsp="true"/> 
            </td>
            <td class="need"><%= label.getLabelName("L_Name") + label.getLabelName("L_Colon") %></td>
            <td > 
                <custom:text name="pageconfiginfo" property="pageconfigname" command="notnull" label="L_Name"></custom:text> 
            </td>
          </tr>
          <tr> 
            <td class="need"><%= label.getLabelName("L_Identify") + label.getLabelName("L_Colon") %></td>
            <td > 
            	<custom:text name="pageconfiginfo" property="summaryidentify" command="notnull" label="L_Identify"></custom:text> 
            </td>
            <td class="need">VTable<%=label.getLabelName("L_Colon") %></td>
            <td > 
            	<custom:selectdic name="pageconfiginfo" property="vtable" dictType="VTable"/>
            </td>
          </tr>
          <tr> 
            <td class="need"><%= label.getLabelName("L_SelectMode") + label.getLabelName("L_Colon") %></td>
            <td > 
            	<custom:selectdic name="pageconfiginfo" property="selectmode" dictType="SelectMode"/>
            </td>
            <td class="td-text"><%= label.getLabelName("L_Comment") + label.getLabelName("L_Colon") %></td>
            <td > 
            	<custom:text name="pageconfiginfo" property="comments" size="30"></custom:text> 
            </td>
          </tr>
        </table>
      </td>
  </tr>
  <tr>
    <td class="summary_top"></td>
  </tr>
  <tr> 
      <td height="49" class="td_center">
      <a onclick="page_save()"><custom:button type="1" label="L_Save" imgsrc="finish.gif" border="0" style="width:60"/></a>
      <a onclick="page_back()"><custom:button type="1" label="L_Back" imgsrc="finish.gif" border="0" style="width:60"/></a>
      </td>
  </tr>
</form>
</table>

</body>
</html>